using System;

 namespace QLST_DTO 
{
	 [Serializable]
	 public class HOA_DON
	{
	private int soHoaDon;
	private DateTime ngayLap;
	private int maNVThuNgan;
	private int maKH;
	private int tongSoLuong;
	private float tongTien;
	public HOA_DON()
	{}
	public HOA_DON(int soHoaDon,DateTime ngayLap,int maNVThuNgan,int maKH,int tongSoLuong,int tongTien)
	{
	this.soHoaDon = soHoaDon;
	this.ngayLap = ngayLap;
	this.maNVThuNgan = maNVThuNgan;
	this.maKH = maKH;
	this.tongSoLuong = tongSoLuong;
	this.tongTien = tongTien;
	}
	public int SoHoaDon{
	get { return this.soHoaDon;}
	set { if(value==null) 
		throw new Exception("soHoaDon not allow nullvalue.");
		this.soHoaDon=value;
	}	}
	public DateTime NgayLap{
	get { return this.ngayLap;}
	set { if(value==null) 
		throw new Exception("ngayLap not allow nullvalue.");
		this.ngayLap=value;
	}	}
	public int MaNVThuNgan{
	get { return this.maNVThuNgan;}
	set { if(value==null) 
		throw new Exception("maNVThuNgan not allow nullvalue.");
		this.maNVThuNgan=value;
	}	}
	public int MaKH{
	get { return this.maKH;}
	set { if(value==null) 
		throw new Exception("maKH not allow nullvalue.");
		this.maKH=value;
	}	}
	public int TongSoLuong{
	get { return this.tongSoLuong;}
	set {this.tongSoLuong=value;}
	}
	public float TongTien{
	get { return this.tongTien;}
	set {this.tongTien=value;}
	}
	public override string ToString(){
	return this.soHoaDon+"; "+this.ngayLap+"; "+this.maNVThuNgan+"; "+this.maKH+"; "+this.tongSoLuong+"; "+this.tongTien+"; ";
	}
	public override bool Equals(Object obj)
	{
	HOA_DON me=(HOA_DON)obj;
	bool ret=this.SoHoaDon.Equals(me.SoHoaDon);
	return ret;
	}
	public override int GetHashCode()
	{
	return this.SoHoaDon.GetHashCode();
	}

	}
} 